how to create a singleton class in c